<template>
	<view>
		<view class="box">
			<view class="name">
				用户 ：{{message.name}}
				<text>{{message.date}}</text>
			</view>
			<view class="title">
				{{message.title}}

			</view>

			<view class="content">
				{{message.content}}
			</view>

		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				message: ''
			}
		},
		methods: {

		},
		onLoad(option) {
			uni.request({
				url: 'http://localhost:8090/freshmenapp/message/findone',
				method: 'POST',
				data: {
					id: option.itemid
				},
				success: res => {
					this.message = res.data.data
				},
				fail: () => {},
				complete: () => {}
			});
		}
	}
</script>

<style>
	.box {
		margin-top: 10px;
		font-size: 16px;
		padding: 15px 10px;
		height: 89vh;
		background: linear-gradient(#fff, #ccc);
	}

	.name {
		margin-bottom: 10px;
	}

	.name text {
		margin-left: 170px;
	}

	.title {
		text-align: center;
		font-size: 18px;
		font-weight: 600;
	}

	.content {
		text-align: center;
		margin-top: 10px;
	}
</style>